<script setup lang="ts">
import RightPanel from '../components/Header/right-panel/index.vue'
import Menu from '../components/Menu/index.vue'

defineOptions({
  name: 'LayoutHorizontal'
})
</script>

<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <Menu mode="horizontal" />
        <RightPanel />
      </el-header>
      <el-main><RouterView /></el-main>
    </el-container>
  </div>
</template>

<style scoped lang="scss">
.common-layout {
  height: 100%;

  .el-header {
    display: flex;
    justify-content: space-between;
  }

  .el-main {
    height: calc(100vh - var(--zc-nav-height));
    background-color: var(--el-fill-color);
    padding: var(--zc-padding-10);
  }
}
</style>
